<?php
namespace app\setting\model;

//use app\common\model\BaseModel;
use think\Model;

class User extends Model
{

    public static function SaveUser()
    {
        $data = request()->post();
        if (empty($data["id"])) {//增加
             $date["salt"] = uuid();
             $date["create_time"] = time();
             $date["password"] = md5(md5($data["password"]) . $date["salt"]);
             self::insert($date);
        } else {//修改
        }
    }
}